/*** Servo module   grytole@gmail.com   03-Nov-2013 ***/

#ifndef __SERVO_H__
#define __SERVO_H__

#include <inttypes.h>

#define SERVO_NUM (3)
#define SERVO_DEFAULT_POS (12000)
#define SERVO_START_POS (4000)
#define SERVO_STOP_POS (20000)

/*** Module initialization ***/
void servoInit(void);

/*** Setting of new servo position values ***/
void servoSetPosition(uint8_t servoId, int16_t servoPos);

/*** Get pointer on servo position storage ***/
uint8_t* servoGetDataPtr(uint8_t servoId);

#endif /* __SERVO_H__ */

/*** eof ***/